package com.shunli.cterminal.enums;

import com.examples.core.enums.BaseEnum;
import com.examples.core.enums.EnumOperations;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum FhTypeEnum implements BaseEnum<String> {
    AUTO("1", "自动发货 历史遗留暂时未用"),
    WECHAT("2", "微信发货 历史遗留暂时未用"),
    UNKNOWN("3", "获客助手 历史遗留暂时未用"),
    PART("4", "部分发货  历史遗留暂时未用"),
    HUOKE("01", "获客助手"),
    WECHAT_02("02", "微信客服外链"),
    MINI_PROGRAMS("03", "小程序"),
    WHATSAPP("04","WhatsAPP");
    private final String code;
    private final String desc;

    public static FhTypeEnum ofCodeNoisy(String code) {
        return EnumOperations.getByCodeNoisy(FhTypeEnum.class, code);
    }
}
